package com.atjava.nebula.core.service;

import com.atjava.nebula.core.exception.baseExp.BusinessException;

/**
 * GenericServiceImpl的拦截器
 * @author kyo
 *
 */
public interface InterceptService{
	
	/**
	 * 执行前
	 * @param objects
	 * @throws BusinessException
	 */
	public void before(Object ...objects) throws BusinessException;
	/**
	 * 执行后
	 * @param objects
	 * @throws BusinessException
	 */
	public void after(Object ...objects) throws BusinessException;
	
	/**
	 * 注入服务接口 默认载入  也可重写
	 * @param service
	 */
	public void setService(GenericService<?,?> service);
}
